package com.jz.netthings.bloodsources.service.impl;

import com.jz.netthings.bloodsources.bean.XyVoluntee;
import com.jz.netthings.bloodsources.bean.XyVolunteeDetailInfo;
import com.jz.netthings.bloodsources.bean.XyVolunteeInfo;
import com.jz.netthings.bloodsources.mapper.XyVolunteeMapper;
import com.jz.netthings.bloodsources.service.XyVolunteeService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.jz.netthings.exception.AdscmSystemException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 义工管理 服务实现类
 * </p>
 *
 * @author 张凡
 * @since 2019-08-03
 */
@Service
public class XyVolunteeServiceImpl extends ServiceImpl<XyVolunteeMapper, XyVoluntee> implements XyVolunteeService {
    @Autowired
    XyVolunteeMapper xyVolunteeMapper;
    @Override
    public List<XyVolunteeInfo> queryByCondition() throws AdscmSystemException {
        List<XyVolunteeInfo> list = xyVolunteeMapper.queryVolunteeTotalInfo();
        return list;
    }

    @Override
    public List<XyVolunteeDetailInfo> queryVolunteeDetailInfo(String useNurseId) throws AdscmSystemException {
        List<XyVolunteeDetailInfo> list = xyVolunteeMapper.queryVolunteeDetailInfo(useNurseId);
        return list;
    }
}
